<template>
    <div>
        <el-form :model="formData" ref="form" label-width="80px" :inline="false">
            <el-form :model="formData" ref="form" label-width="80px" :inline="false">
                <el-form-item label="单位编码">
                    <el-input v-model="name"></el-input>
                </el-form-item>
                <el-form-item label="单位名称">
                    <el-input v-model="sort" type="number"></el-input>
                </el-form-item>
                <el-form-item label="主单位">
                    <el-radio v-model="radio" label="1">是</el-radio>
                    <el-radio v-model="radio" label="2">否</el-radio>
                </el-form-item>
                <el-form-item label="是否启用">
                    <el-radio v-model="radio" label="1">是</el-radio>
                    <el-radio v-model="radio" label="2">否</el-radio>
                </el-form-item>
                <el-form-item label="备注">
                    <el-input type="textarea" :rows="2" v-model="textarea">
                    </el-input>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" @click="onSubmit">立即添加</el-button>
                    <el-button type="primary" @click="close">关闭</el-button>
                </el-form-item>
            </el-form>
        </el-form>
    </div>
</template>

<script setup>
//关闭按钮
let emits = defineEmits(['close'])
let close = () => {
    emits('close')
}
</script>

<style lang='scss' scoped></style>
